package com.huixuebao.api.service.rpc;

import com.huixuebao.api.dto.UserDTO;
import com.huixuebao.common.bean.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "settle")
public interface UserService {

    @GetMapping("/user/info")
    ApiResult<UserDTO> getUserByPhone(@RequestParam("phone") String phone);
}
